package com.example.share.controller;


import com.example.share.pojo.User;
import com.example.share.service.UserService;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author yjw
 * @since 2022-05-17
 */
@RestController
@RequestMapping("/share/user")
public class UserController {
    @Resource
    private UserService userService;
    @RequestMapping("/user1")
    private List<User> find(){
        List<User> user = userService.findAllUser();
        System.out.println(user);
        return user;
    }
}

